export default class CatAlbum extends Phaser.Scene {
    create() {
        // 背景
        this.add.image(540, 960, 'album_bg')
            .setDisplaySize(1080, 1920);

        // 猫咪展示网格
        this.createCatGrid();
    }

    createCatGrid() {
        const catList = ['white', 'orange', 'pink', 'black', 'calico'];
        catList.forEach((cat, i) => {
            const x = 200 + (i % 3) * 300;
            const y = 400 + Math.floor(i / 3) * 400;
            
            this.add.sprite(x, y, `cat_${cat}_icon`)
                .setInteractive()
                .on('pointerdown', () => {
                    this.showCatDetails(cat);
                });
        });
    }
}